﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="aboutmenu.ascx.cs" Inherits="uc_aboutmenu" %>
<%@ Import Namespace="System.Data" %>
    <div class="wid960">
        <div class="menu">
            <div class="menu_l"><a href="about.html" style="color:#fff">关于日发</a></div>
            <ul>
                <% 
                    if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
                    {
                        foreach (DataRow dr in ds.Tables[0].Rows)
                        {
                            string name = dr["LM_Name"].ToString();
                            string url = dr["LM_SourceUrl"].ToString();
                            string urlName = dr["LM_UrlName"].ToString();
                            if (string.IsNullOrEmpty(url))
                            {
                                url = Utility.GetLanmuUrlNmae(Utility.AboutCid) + "-" + urlName + ".html";
                            }
                %>
                <li <%if(Request.RawUrl.Contains(url)) {%> class="cur"<%} %> title="<%=name %>"><a href="<%=url %>"><%=name %></a></li>
                <% 
                        }
                    }
                    else
                    { 
                %>
                <li><a href="about-me.html">日发介绍</a></li>
                <li><a href="about-ceo.html">董事长致辞 </a></li>
                <li><a href="about-history.html">日发历程</a></li>
                <li><a href="about-vision.html">日发愿景</a></li>
                <li><a href="about-culture.html">日发文化</a></li>
                <li><a href="about-honor.html">日发荣誉</a></li>
                <li><a href="about-visit.html">领导来访</a></li>
                <%                     
                    }                 
                %>
            </ul>
            <div class="menu_r"></div>
        </div>
    </div>